package com.sgb.kjwl.view.ui.adapter.pricecheck;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.pricecheck.AttributeViewEntity;
import com.sgb.kjwl.model.entity.user.SkuItemAttrEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class AttributeChildAdapter extends BaseRecycleAdapter<AttributeViewEntity.TypeBean> {

    public AttributeChildAdapter(Context context, List<AttributeViewEntity.TypeBean> datas) {
        super(context, R.layout.item_attribute_child, datas);

    }

    @Override
    public void convert(ItemViewHolder holder, final AttributeViewEntity.TypeBean entity) {
        holder.setBinding(BR.viewModel, entity);
        TextView tv_category_item = holder.getItem().findViewById(R.id.tv_category_item);
        holder.itemView.setClickable(true);
    }


}
